import { defineStore } from 'pinia'
import storage from '@/utils/storage'

export const useSwitchesStore = defineStore('switches',{
  state() {
    return {
      switchRate: storage.getItem('currentRateName') || 'CNY',
      switchLanguage: storage.getItem('currentLanguage') || 'cn',
    }
  }
})
